// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   CityService.java

package com.nervytech.tutorcruise.db.service.impl;

import com.nervytech.tutorcruise.db.dao.interfaces.ICityDAO;
import com.nervytech.tutorcruise.db.service.interfaces.ICityService;
import com.nervytech.tutorcruise.service.exception.TrainerCruiseServiceException;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("cityService")
public class CityService implements ICityService {

	@Autowired
	private ICityDAO cityDao;

	public String getCityName(int cityId) {
		return null;
	}

	public int getStateName(int cityId) {
		return 0;
	}

	public int getCountryName(int cityId) {
		return 0;
	}

	public Map<Integer, String> getCitisMap(int stateId)
			throws TrainerCruiseServiceException {
		Map<Integer, String> citiesMap = new HashMap<Integer, String>();
		try {
			citiesMap = cityDao.getCitisMap(stateId);
		} catch (Exception e) {
			throw new TrainerCruiseServiceException(e.getMessage());
		}
		return citiesMap;
	}

}
